MapboxAudioGuidance

interface MapboxAudioGuidance : MapboxNavigationObserver

Service interface accessible through MapboxCarApp.carAppServices

It will start monitoring audio guidance once the class is referenced because it is lazy loaded. Use the controllable functions mute, unmute, toggle to change the voice guidance. The selection is saved to shared preferences and will become the default setting.

Subscribing onto the stateFlow does not change the internal state.

Types

State
Link copied to clipboard
interface State
Accessed through stateFlow.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
mute
Link copied to clipboard
abstract fun mute()
Continue to monitor voice instructions, but stop the audio voice.
onAttached
Link copied to clipboard
abstract fun onAttached(mapboxNavigation: MapboxNavigation)
onDetached
Link copied to clipboard
abstract fun onDetached(mapboxNavigation: MapboxNavigation)
stateFlow
Link copied to clipboard
abstract fun stateFlow(): StateFlow<MapboxAudioGuidance.State>
Monitor the voice instructions state.
toggle
Link copied to clipboard
abstract fun toggle()
Toggle the state between mute and unmute.
toString
Link copied to clipboard
open fun toString(): String
unmute
Link copied to clipboard
abstract fun unmute()
Turn on the audio voice.

Inheritors

MapboxAudioGuidanceImpl
Link copied to clipboard